package com.bean.entity;

import java.io.Serializable;

/**
 * 身份实体类
 *
 */

public class Role implements Serializable {

    private Integer id;
    private String name;
    private Integer powerId;

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", powerId=" + powerId +
                '}';
    }

    public Role() {
    }

    public Role(Integer id) {
        this.id = id;
    }

    public Role(String name, Integer powerId) {
        this.name = name;
        this.powerId = powerId;
    }

    public Role(Integer id, String name, Integer powerId) {
        this.id = id;
        this.name = name;
        this.powerId = powerId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPowerId() {
        return powerId;
    }

    public void setPowerId(Integer powerId) {
        this.powerId = powerId;
    }
}
